package com.mayikt.weixin.impl.service;

import com.mayikt.base.BaseApiService;
import com.mayikt.base.BaseResponse;
import com.mayikt.weixin.api.service.WeiXinService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WeiXinServiceImpl extends BaseApiService implements WeiXinService {

    @Override
    public BaseResponse addApp(String appId, String appPwd) {
        if (StringUtils.isEmpty(appId)) {
            return setResultError("appid不能为空!");
        }
        if (StringUtils.isEmpty(appPwd)) {
            return setResultError("appPwd不能为空!");
        }
        return setResultSuccess("蚂蚁课堂");
    }
}
